#!/bin/sh

# 复制项目的文件到对应docker路径，便于一键生成镜像。
usage() {
	echo "Usage: sh copy.sh"
	exit 1
}


# copy sql
echo "begin copy sql "
cp ../sql/ry_20250523.sql ./mysql/db
cp ../sql/ry_config_20250224.sql ./mysql/db

# copy html
echo "begin copy html "
cp -r ../wanfan-ui/dist/** ./nginx/html/dist


# copy jar
echo "begin copy wanfan-gateway "
cp ../wanfan-gateway/target/wanfan-gateway.jar ./wanfan/gateway/jar

echo "begin copy wanfan-auth "
cp ../wanfan-auth/target/wanfan-auth.jar ./wanfan/auth/jar

echo "begin copy wanfan-visual "
cp ../wanfan-visual/wanfan-monitor/target/wanfan-visual-monitor.jar  ./wanfan/visual/monitor/jar

echo "begin copy wanfan-modules-system "
cp ../wanfan-modules/wanfan-system/target/wanfan-modules-system.jar ./wanfan/modules/system/jar

echo "begin copy wanfan-modules-file "
cp ../wanfan-modules/wanfan-file/target/wanfan-modules-file.jar ./wanfan/modules/file/jar

echo "begin copy wanfan-modules-job "
cp ../wanfan-modules/wanfan-job/target/wanfan-modules-job.jar ./wanfan/modules/job/jar

echo "begin copy wanfan-modules-gen "
cp ../wanfan-modules/wanfan-gen/target/wanfan-modules-gen.jar ./wanfan/modules/gen/jar

